import { ref, reactive } from 'vue';
import dayjs from 'dayjs';
// 设备
export const deviceOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: 'PC',
    value: 1
  },
  {
    label: '安卓',
    value: 2
  },
  {
    label: 'IOS',
    value: 3
  },
  {
    label: '小程序',
    value: 4
  }
];
// 指标
export const targetOptions: any[] = [
  {
    label: '访客数',
    value: 1
  },
  {
    label: 'IP数',
    value: 2
  },
  {
    label: '活跃用户',
    value: 3
  },
  {
    label: '平均访问时长',
    value: 4
  },
  {
    label: '平均访问页数',
    value: 5
  },
  {
    label: '新增用户',
    value: 6
  },
  {
    label: '新增会员',
    value: 7
  },
  {
    label: '流失率',
    value: 8
  },
  {
    label: '销售额',
    value: 9
  },
  {
    label: '订单数',
    value: 10
  },
  {
    label: '客单价',
    value: 11
  },
  {
    label: '续费率',
    value: 12
  },
  {
    label: 'ARPU',
    value: 13
  },
  {
    label: 'ARPPU',
    value: 14
  }
];
// 用户标签
export const userLabelOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '新增用户',
    value: 1
  },
  {
    label: '活跃用户',
    value: 2
  },
  {
    label: '付费用户',
    value: 3
  }
];
// 用户
export const userOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '会员',
    value: 1
  },
  {
    label: '非会员',
    value: 2
  }
];
// 用户
export const memberTypeOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '旗舰版',
    value: 1
  },
  {
    label: '轻享版',
    value: 2
  }
];
// 套餐时长
export const durationOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '月卡',
    value: 1
  },
  {
    label: '季卡',
    value: 2
  },
  {
    label: '年卡',
    value: 3
  }
];
// 团队人数
export const teamCountOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '1人',
    value: 1
  },
  {
    label: '3人',
    value: 2
  },
  {
    label: '5人',
    value: 3
  },
  {
    label: '10人',
    value: 4
  }
];
// 付费行为
export const paymentOptions: any[] = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '首购',
    value: 1
  },
  {
    label: '续费',
    value: 2
  }
];

// 折线图表
export const lineChartXData = ref([
  dayjs('2023-07-13 00:00:00').unix(),
  dayjs('2023-07-14 06:00:00').unix(),
  dayjs('2023-07-15 12:00:00').unix(),
  dayjs('2023-07-16 18:00:00').unix()
]);
export const lineChartYData = ref([
  {
    name: '访客数',
    color: '#4975E9',
    data: [1000, 2000, 4000, 6000]
  }
]);

// 行为-事件
export const eventOptions: any[] = [
  {
    label: '不限',
    value: -1
  },
  {
    label: '关注公众号',
    value: 1
  },
  {
    label: '联系客服',
    value: 2
  },
  {
    label: '点击登录',
    value: 3
  },
  {
    label: '点击产品介绍',
    value: 4
  },
  {
    label: '点击续费',
    value: 5
  }
];

// 漏斗
// 渠道
export const channelOptions = [
  {
    label: '不限',
    value: 0
  },
  {
    label: '百度',
    value: 1
  },
  {
    label: '360',
    value: 2
  }
];
